package gravitationally_adjustable_physical_ball;

import java.awt.*;

public class Ceiling {
    private static int y;
    public Ceiling(){
        y=0;
    }

    public static void setY(int y) {
        Ceiling.y = y;
    }

    public static int getY() {
        return y;
    }

    public void draw(Graphics g){
        g.setColor(new Color(0, 0, 128));
        g.fillRect(0,0,800,5);
    }
}
//天花板，碰到就速度归零并下落